package com.peakmain.homemodule.contarct;

import com.peakmain.wanandroid.netmodule.base.BaseContract;
import com.peakmain.wanandroid.netmodule.bean.home.HomeBannerBean;
import com.peakmain.wanandroid.netmodule.bean.home.HomeArticleBean;
import com.peakmain.wanandroid.netmodule.bean.home.HomeFriendBean;
import com.peakmain.wanandroid.netmodule.bean.home.HomeTopArticleBean;

import java.util.List;

/**
 * author: peakmain
 * createdata：2019/7/17
 * mail: 2726449200@qq.com
 * desiption:
 */
public interface HomeArticleContract {
    interface View extends BaseContract.BaseView{
        void showHomeArticleSuccess(HomeArticleBean datasBean, boolean isPullDown, boolean isSilence);
        void showHomeBannerSuccess(List<HomeBannerBean> data);
        void showHomeTopArticle(List<HomeTopArticleBean> data);
        void showFriendDataSuccess(List<HomeFriendBean> dataBeans);
    }
    interface Presenter extends BaseContract.BasePresenter<View>{
        void getHomeArticle(int page, boolean isPullDown, boolean isSilence);

        void getHomeBanner();

        void getHomeTopArticle();

        void getFriendData();
    }
}
